<?php 
	include_once 'checkloginstatus.php';
    include_once 'contentmanage.php';
?>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>瑞邦晟达内容管理</title>
	<link rel="stylesheet" href="RTBEditor/themes/default/default.css" />
</head>
<body>
<form action="" method="post">
	<table>
		<tr>
			<td>标题：</td>
			<td><input type="text" name="title" id="txtTitle" value="<?php echo $Title ?>" /></td>
		</tr>
		<?php 
		    if(isset($_GET['name'])){
                if($_GET['name']==='pro'){
		?>
		<tr>
		    <td rowspan="2">产品滚动图片：</td>
		    <td><input type="text" name="ProductName" /></td>
		</tr>
		<tr>
		    <td>
		        <img alt="" src="" id="imgProduct" />
		        <input type="button" value="添加产品配图" id="btnImageUpload" />
		        <span id="spnErrorMeg"></span>
		        <span>注：图片宽高比例最好为197:74，否则经过系统处理后可能会造成失真</span>
		        <input type="hidden" name="hidImageName" id="hidImageName" />
		    </td>
		</tr>
		<?php 
		        }
		    }
		?>
		<tr>
			<td>内容：</td>
			<td><textarea name="content"><?php echo htmlspecialchars($Content); ?></textarea></td>
		</tr>
		<tr>
			<td>操作员：</td>
			<td><input type="text" name="manager" value="<?php echo $_SESSION['TrueName']; ?>" disabled="disabled" /></td>
		</tr>
		<tr>
			<td>状态：</td>
			<td>
				<select name="Status">
					<option value="1">启用</option>
					<option value="0">禁用</option>
				</select>
			</td>
		</tr>
		<tr>
			<td colspan="2">
				<input type="hidden" name="Action" value="<?php echo $Action; ?>" />
				<input type="submit" name="btnSubmit" value="提交" id="btnSubmit" />
				<a href="contentlist.php?nid=<?php echo $_GET['nid'];?>"><input type="button" name="btnReturn" value="返回" /></a>
			</td>
		</tr>
	</table>
	<script type="text/javascript" charset="utf-8" src="RTBEditor/kindeditor-min.js"></script>
	<script type="text/javascript" charset="utf-8" src="RTBEditor/lang/zh_CN.js"></script>
    <script type="text/javascript">
        var editor;
		KindEditor.ready(function(K) {
			editor = K.create('textarea[name="content"]', {
				allowFileManager : true,
				width:700,
				height:400
			});
		});
    </script>
</form>
</body>
</html>